import os, django
from User import models

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NICU2HOME.settings')

django.setup()

users = models.Users.objects.values_list("id", "full_name", "phone")

user = models.Users.objects.filter(id=3).first()
print(user.userfamilyinvitationcodes_set.all())
print(user.usersbabies_set.all())

babys = models.Babies.objects.values_list("id", "full_name")
print(babys)


userbaby = models.UsersBabies.objects.filter(id=1).first()
print(userbaby.users.full_name)


print(models.UserFamilyInvitationCodes.objects.all().values_list())

